MTextLink – A text link that acts like a clickable button.


Creation: MTextLink_New(caption$, text alignment, shadow mode, x, y)


caption$ - The text that is displayed in the link.

text alignment – 0-centered, 1-left, 2-right.

shadow mode – 0-none, 1-shadowed.

x – Pixel X coordinate for the top left corner of the button.

y – Pixel Y coordinate for the top left corner of the button.


Functions:

MTextLink_ClearSelected(index)

Clears the pressed status of the link.


MTextLink_Delete(index)

Deletes the link.


MTextLink_Disable(index)

Disables the link.


MTextLink_Draw(index)

Draws the link to screen.


MTextLink_Enable(index)

Enables the link.


MTextLink_GetSelected(index)

Gets whether link is pressed status. 0=no ; 1=yes


MTextLink_SetCaption(index, caption$)

Sets the caption in the link.